const { trafficService, mobileService } = require('./service')

exports.trafficSendData = async (cityCode, callback) => {
  callback(
    await trafficService.getAmountLine(cityCode),
    await trafficService.getMileageLine(cityCode),
    await trafficService.getUserFlowLine(cityCode),
    await trafficService.getBusWarnPie(cityCode),
    await trafficService.getYestodayData(cityCode),
    await trafficService.getOperateData(cityCode),
    await trafficService.getIntervalMileage(cityCode)
  )
}

exports.mobileSendData = async (cityCode, callback) => {
  callback(
      await mobileService.getMobilePayMount(cityCode),
      await mobileService.getMobilePayCount(cityCode),
      await mobileService.getMobileCardCount(cityCode),
      // await mobileService.getIntervalTotal(cityCode),
      await mobileService.getMapData(cityCode),
      await mobileService.getDeviceData(cityCode),
      await mobileService.getSexData(cityCode),
      await mobileService.getAreaData(cityCode),
      await mobileService.getAgeData(cityCode),
      await mobileService.getAveragePay(cityCode),
      await mobileService.getAveragePayPie(cityCode),
      await mobileService.getBusAveragePay(cityCode),
      await mobileService.getCityPay(),
      await mobileService.getCityMonthPay(cityCode)
  )
}


